// nhap vao 3 so  va tim ra so lon nhat nho nhat va tinh trung binh cong cua 3 so do
#include<stdio.h>
#include<math.h>
int main(){int a,b,c,min,max;
float avg;
printf("nhap vao 3 so:\n");
scanf("%d%d%d",&a,&b,&c);
avg=(float)(a+b+c)/3;
max=a>b?(a>c?a:c):(b>c?b:c);
min=c<b?(c<a?c:a):(b<a?b:a);
printf("so lon nhat la: %d",max);
printf("\nso nho nhat la: %d ",min);
printf("\n trung binh cong cua 3 so do la %f",(float)avg);
getch();}
